﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using Charades.Web.DAL;
using Charades.Web.DAL.DBMSAdapters.Dummy;
using Charades.Web.DAL.DBMSAdapters.MSSQL;
using WebMatrix.WebData;

namespace Charades.Web
{
	public class MvcApplication : System.Web.HttpApplication
	{
		protected void Application_Start()
		{
			AreaRegistration.RegisterAllAreas();
			FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
			RouteConfig.RegisterRoutes(RouteTable.Routes);
			BundleConfig.RegisterBundles(BundleTable.Bundles);

			// WebSecurity.InitializeDatabaseConnection("dpMainDBDirectConnection", "UserProfile", "UserId", "UserName", true);
			DBHandler.Init<DummyAdapter>();
		}
	}
}
